package com.example.a1.fannong.model;

import cn.personal.library.json.JsonField;

/**
 * Created by 1 on 2017/10/18.
 */

public class ShoppingCarEntity {
    @JsonField("mId")
    private String mId;
    @JsonField("name")
    private String name;
    @JsonField("spec")
    private String spec;
    @JsonField("price")
    private String price;
    @JsonField("count")
    private int count;

    private boolean choosed;

    public boolean isChoosed() {
        return choosed;
    }

    public void setChoosed(boolean choosed) {
        this.choosed = choosed;
    }

    public String getmId() {
        return mId;
    }

    public void setmId(String mId) {
        this.mId = mId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "ShoppingCarEntity{" +
                "mId='" + mId + '\'' +
                ", name='" + name + '\'' +
                ", spec='" + spec + '\'' +
                ", price='" + price + '\'' +
                ", count='" + count + '\'' +
                ", choosed=" + choosed +
                '}';
    }

    public ShoppingCarEntity(String mId, String name, String spec, String price, int count,boolean choosed) {
        this.mId = mId;
        this.name = name;
        this.spec = spec;
        this.price = price;
        this.count = count;
        this.choosed = choosed;
    }
}
